﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// 活動回答/報名
/// </summary>
namespace sexhealth.console.service.activity.vo
{
    [Serializable]
    public class AnswerVO
    {
        public AnswerVO()
        {
        }

        /// <summary>
        /// 最新的活動Id
        /// </summary>
        public const int LatestActivityId = 1;

        /// <summary>
        /// Pkey
        /// </summary>
        public virtual int AnswerId { get; set; }

        /// <summary>
        /// 活動Id
        /// </summary>
        public virtual int ActivityId { get; set; }

        /// <summary>
        /// 類型
        /// </summary>
        public virtual AnswerType AnswerType { get; set; }

        /// <summary>
        /// 徵文對話1-1_先生
        /// </summary>
        public virtual string Ans1_1 { get; set; }

        /// <summary>
        /// 徵文對話1-2_太太
        /// </summary>
        public virtual string Ans1_2 { get; set; }

        /// <summary>
        /// 徵文對話2-1_救生員
        /// </summary>
        public virtual string Ans2_1 { get; set; }

        /// <summary>
        /// 徵文對話3-1_先生
        /// </summary>
        public virtual string Ans3_1 { get; set; }

        /// <summary>
        /// 徵文對話4-1_醫生
        /// </summary>
        public virtual string Ans4_1 { get; set; }

        /// <summary>
        /// 晨間勃起對男性的健康的意義
        /// </summary>
        public virtual bool Option1_1 { get; set; }

        /// <summary>
        /// 勃起功能障礙與心血管疾病的關係
        /// </summary>
        public virtual bool Option1_2 { get; set; }

        /// <summary>
        /// 勃起功能障礙與慢性疾病的關係
        /// </summary>
        public virtual bool Option1_3 { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 性別(男/女)
        /// </summary>
        public virtual string Sex { get; set; }

        /// <summary>
        /// 年齡
        /// </summary>
        public virtual string Age { get; set; }

        /// <summary>
        /// 連絡電話/手機
        /// </summary>
        public virtual string Phone { get; set; }

        /// <summary>
        /// 電子信箱
        /// </summary>
        public virtual string Email { get; set; }

        /// <summary>
        /// 聯絡地址
        /// </summary>
        public virtual string Address { get; set; }

        /// <summary>
        /// 建立時間
        /// </summary>
        public virtual DateTime CreatedDate { get; set; }

        /// <summary>
        /// 建立IP
        /// </summary>
        public virtual string CreatedIP { get; set; }

        public virtual string GetStr_Option1_1
        {
            get
            {
                if (Option1_1)
                {
                    return "V";
                }
                else
                {
                    return string.Empty;
                }
            }
        }

        public virtual string GetStr_Option1_2
        {
            get
            {
                if (Option1_2)
                {
                    return "V";
                }
                else
                {
                    return string.Empty;
                }
            }
        }

        public virtual string GetStr_Option1_3
        {
            get
            {
                if (Option1_3)
                {
                    return "V";
                }
                else
                {
                    return string.Empty;
                }
            }
        }
    }

    public enum AnswerType
    {
        /// <summary>
        /// 匿名/一般
        /// </summary>
        None = 0,
        /// <summary>
        /// 報名
        /// </summary>
        SignUp = 1
    }    
}